-- GENERATED SPELL FOR [Syndicate Pathstalker] --


function spell0_2587(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2587', 531, 1)
end

function Sorts_2587(pUnit, Event)
local choix_sorts_2587 = math.random(0, 0)
if choix_sorts_2587 == 0 then
pUnit:RegisterEvent('spell0_2587', 1, 1)
end
end

function mob2587_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2587', math.random(1500, 3000), 1)
end

function mob2587_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2587_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2587_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2587, 1, 'mob2587_Action')
RegisterUnitEvent(2587, 2, 'mob2587_Leave')
RegisterUnitEvent(2587, 3, 'mob2587_Kill')
RegisterUnitEvent(2587, 4, 'mob2587_Die')
